<?php require_once 'header2.php';?> 
<div class="main">
	<div class="left_cn">
	<h2>上传图片</h2> 
<?php echo $error;?> 
<?php if(!empty($rt)){ echo '<div><img src="'.base_url().$rt
		.'" /></div><div style="color:red;">'.base_url().$rt.'</div>';}?>
	<form action="<?php echo current_url(); ?>" method="POST"  enctype="multipart/form-data" >
		<p>上传本机图片：
		<input type="file" name="userfile"/></p>
		 
		<p ><input type="submit" name="uploadpic" value="上传"/></p>
	</form>
	</div>
</div>
<?php require_once 'footer2.php';?> 